var print_status;
var printbc;

function CardPrinter_getStatus(data, callback) {
    print_status = callback;
    window.external.cardprint_status(data, "getStatus_callback");
}

function getStatus_callback(json) {
    print_status(json);
}

function CardPrinter_print(data, callback) {
    printbc = callback;
    window.external.printcard(data, "print_callback");
}

function print_callback(json) {
    printbc(json);
}